package com.quartzd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 描述：quartz执行状态实体类
 * @author huxuehao
 **/
@Data
@TableName("quartz_job_info")
public class JobInfo implements Serializable {
    private static final long serialVersionUID = 1L;
	/**定时任务标识*/
    private String id;
    /*corn*/
    private String cron;
    /*执行类*/
    private String jobClass;
    /*执行参数*/
    private String dataMap;
    /**最新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastTime;
	/**状态*/
    private Integer status;
}
